#define D_(str) dgettext(PACKAGE, str)

#ifndef E_MOD_MAIN_H
#define E_MOD_MAIN_H

typedef struct _Config Config;
typedef struct _Config_Item Config_Item;
typedef struct _Config_Fan Config_Fan;

struct _Config
{
    E_Module *module;
    E_Config_Dialog *config_dialog;
    E_Menu *menu;
    Evas_List *instances;
    Evas_List *items;
};


struct _Config_Item
{
    const char *id;

    int ac_hysteresis;
    int ac_lf_low_temp;
    int ac_lf_high_temp;
    int ac_rf_low_temp;
    int ac_rf_high_temp;

    int bat_hysteresis;
    int bat_lf_low_temp;
    int bat_lf_high_temp;
    int bat_rf_low_temp;
    int bat_rf_high_temp;
};

EAPI extern E_Module_Api e_modapi;

EAPI void *e_modapi_init(E_Module *m);
EAPI int e_modapi_shutdown(E_Module *m);
EAPI int e_modapi_save(E_Module *m);
EAPI int e_modapi_about(E_Module *m);

void _config_ei8k_module(Config_Item *ci);
extern Config *ei8k_config;

#endif
